package com.lin.cloud.disk.entity.request;

import com.lin.cloud.disk.common.entity.request.AccountRequestDTO;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @program: cloud-disk
 * @description: 授权/撤销授权
 * @author: Lin
 * @create: 2021-01-07 21:40
 **/
@Data
public class AuthorizationPermissionRequest extends AccountRequestDTO {

    @ApiModelProperty(value = "部门ID",name = "departmentId")
    @NotNull(message = "部门ID不能为空")
    private Long departmentId;

    @ApiModelProperty(value = "授权部分列表 增量授权",name = "authorizationPartList")
    @NotNull(message = "授权列表不能为空")
    private List<Long> authorizationPartList;

    @ApiModelProperty(value = "未授权部分列表 增量取消授权",name = "unAuthorizationPartList")
    @NotNull(message = "未授权部分列表不能为空")
    private List<Long> unAuthorizationPartList;
}
